package com.lfsenior.account.entity;

import java.util.Date;
import java.util.List;

/**
 * Created by dlupan on 2018/9/14
 */
public class LoginUser {
    private Integer userId;

    private String userName;

    private Integer userType;

    private String loginPassword;

    private String tradePassword;

    private Integer userStatus;

    private String registerIp;

    private Date registerTime;

    private String registerSource;

    private String userSecret;

    private String userKey;

    private String realName;

    private String nickName;

    private Integer certificateType;

    private String certificateNo;

    private String mobile;

    private String deviceUuid;

    private Integer mt4Id;

    private String ituCode;

    private String email;

    public LoginUser(User user, UserToken userToken, UserInfo userInfo) {

        if (null != user) {
            this.userId = user.getUserId();
            this.userName = user.getUserName();
            this.userType = user.getUserType();
            this.userStatus = user.getUserStatus();
            this.registerIp = user.getRegisterIp();
            this.registerTime = user.getRegisterTime();
            this.registerSource = user.getRegisterSource();
            this.tradePassword = user.getTradePassword();
            this.loginPassword = user.getLoginPassword();
            this.ituCode = user.getItuCode();
            this.email = user.getEmail();
        }

        if (null != userToken) {
            this.userSecret = userToken.getUserSecret();
            this.userKey = userToken.getUserKey();
            this.deviceUuid = userToken.getDeviceId();
        }

        if (null != userInfo) {
            this.realName = userInfo.getRealName();
            this.certificateNo = userInfo.getCertificateNo();
            this.certificateType = userInfo.getCertificateType();
            this.setNickName(userInfo.getNickName());
            this.mobile = userInfo.getMobile();
            this.mt4Id = userInfo.getMt4Id();
        }
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Integer getUserType() {
        return userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    public String getLoginPassword() {
        return loginPassword;
    }

    public void setLoginPassword(String loginPassword) {
        this.loginPassword = loginPassword;
    }

    public String getTradePassword() {
        return tradePassword;
    }

    public void setTradePassword(String tradePassword) {
        this.tradePassword = tradePassword;
    }

    public Integer getUserStatus() {
        return userStatus;
    }

    public void setUserStatus(Integer userStatus) {
        this.userStatus = userStatus;
    }

    public String getRegisterIp() {
        return registerIp;
    }

    public void setRegisterIp(String registerIp) {
        this.registerIp = registerIp;
    }

    public Date getRegisterTime() {
        return registerTime;
    }

    public void setRegisterTime(Date registerTime) {
        this.registerTime = registerTime;
    }

    public String getRegisterSource() {
        return registerSource;
    }

    public void setRegisterSource(String registerSource) {
        this.registerSource = registerSource;
    }

    public String getUserSecret() {
        return userSecret;
    }

    public void setUserSecret(String userSecret) {
        this.userSecret = userSecret;
    }

    public String getUserKey() {
        return userKey;
    }

    public void setUserKey(String userKey) {
        this.userKey = userKey;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public Integer getCertificateType() {
        return certificateType;
    }

    public void setCertificateType(Integer certificateType) {
        this.certificateType = certificateType;
    }

    public String getCertificateNo() {
        return certificateNo;
    }

    public void setCertificateNo(String certificateNo) {
        this.certificateNo = certificateNo;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getDeviceUuid() {
        return deviceUuid;
    }

    public void setDeviceUuid(String deviceUuid) {
        this.deviceUuid = deviceUuid;
    }

    public Integer getMt4Id() {
        return mt4Id;
    }

    public void setMt4Id(Integer mt4Id) {
        this.mt4Id = mt4Id;
    }

    public String getItuCode() {
        return ituCode;
    }

    public void setItuCode(String ituCode) {
        this.ituCode = ituCode;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
}
